Page({
  // data: {
  //   notifyDetail: {},
  // },

  onLoad({ id }) {
    this.getNotifyDetailById(id)
  },

  async getNotifyDetailById(id) {
    if (!id) return

    const { code, data: notifyDetail } = await wx.http.get(`/announcement/${id}`)

    if (code !== 10000) return wx.utils.toast()

    this.setData({ ...notifyDetail })
  },
})
